* image.c (pbm_load): Set to NO_PIXMAP on error.
authorJan D. <jan.h.d@swipnet.se>
Wed, 12 Feb 2014 07:50:24 +0000 (08:50 +0100)
committerJan D. <jan.h.d@swipnet.se>
Wed, 12 Feb 2014 07:50:24 +0000 (08:50 +0100)
src/ChangeLog
src/image.c

index 5e9a4bf4cc7ad580e4908e4cfdc59e9a5c987c07..df6e9cd98bcec7361d0ab761ea63b577b08a2815 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-12  Marcus Karlsson <mk@acc.umu.se> (tiny change)
+
+       * image.c (pbm_load): Set to NO_PIXMAP on error (Bug#16683).
+
 2014-02-12  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * buffer.c (syms_of_buffer): Doc clarification (bug#9981).
index 706745fb479c1ea93fd872aa243871f82026605f..e53ad0b4a30a19b89be2d36bf41e5b164cd161cf 100644 (file)
@@ -5215,6 +5215,7 @@ pbm_load (struct frame *f, struct image *img)
       image_error ("Not a PBM image: `%s'", img->spec, Qnil);
     error:
       xfree (contents);
+      img->pixmap = NO_PIXMAP;
       return 0;
     }